<template>
	<view class="container homepage">
		<view class="title">
			康氏渔业
		</view>
		<view class="info">
			<view class="top">
				<navigator  class="mysales todaysales" url="../saleorder/saleorder">
					<view class="left">
						<text class="title">月销售额:</text>
						<text class="icon">￥</text>
						<text class="num">234</text>
					</view>
					<image src="/static/images/right.png" class="routericon"></image>
				</navigator >
				
				<view class="mysales credit">
					<view class="left">
						<text class="title">赊欠额:</text>
						<text class="icon">￥</text>
						<text class="num">234</text>
					</view>
					<image src="/static/images/right.png" class="routericon"></image>
				</view>
			</view>
			<view class="operator">
				<!-- <view class="item ruzhang">
					<image class="operatoricon" src="/static/images/ruzhang.png"></image>
					<text class="text">入账</text>
				</view> -->
				<view class="item shezhang">
					<image class="operatoricon" src="/static/images/shezhang.png"></image>
					<text class="text">赊账</text>
				</view>
				<view class="item huangkuang">
					<image class="operatoricon" src="/static/images/huangkuang.png"></image>
					<text class="text">还款</text>
				</view>
				<view class="item xiaoxi">
					<image class="operatoricon" src="/static/images/xiaoxi.png"></image>
					<text class="text">消息</text>
				</view>
			</view>
		</view>
		<view class="mydaliyinfo">
			<view class="baseinfo">
				<view class="top">
					<text class="text">今日开单</text>
					<view class="qushi">
						<image src="../../static/images/qushi.png" class="qushiimg"></image>
						<view class="text check">查看七日趋势</view>
					</view>
				</view>
				<view class="bottom">
					<view class="box left">
						<navigator class="infoitem" url="../saleorder/saleorder">
							<view class="left">
								<text class="title">开单(2单)</text>
								<text class="icon">￥</text>
								<text class="num">234</text>
							</view>
							<image src="/static/images/blackright.png" class="routericon"></image>
						</navigator>
						<view class="infoitem">
							<view class="left">
								<text class="title">实收金额</text>
								<text class="icon">￥</text>
								<text class="num">234</text>
							</view>
							<image src="/static/images/blackright.png" class="routericon"></image>
						</view>
					</view>
					<view class="box right">
						<navigator class="infoitem" url="../debtinfo/debtinfo">
							<view class="left">
								<text class="title">赊欠(2人)</text>
								<text class="icon">￥</text>
								<text class="num">2312</text>
							</view>
							<image src="/static/images/blackright.png" class="routericon"></image>
						</navigator>
						<view class="infoitem">
							<view class="left">
								<text class="title"></text>
								<text class="icon"></text>
								<text class="num"></text>
							</view>
							<!-- <image src="/static/images/blackright.png" class="routericon"></image> -->
						</view>
					</view>
				</view>
			</view>
			<view class="openorder">
				<view class="btn">
					<image class="operatoricon" src="../../static/images/order.png"></image>
					<navigator class="text" url="../setorder/setorder">
						开单
					</navigator>
				</view>
			</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		 
	}
</script>

<style lang="scss" scoped>
	.homepage{
		background-color: #4A4747;
		display: flex;
		flex-direction: column;
		>.title{
			font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
			font-weight: bold;
			letter-spacing:4rpx;
			padding-left: 12rpx;
		}
		.info{
			padding-top: 12rpx;
			padding-left: 12rpx;
			padding-right: 12rpx;
			.top{
				.mysales{
					display: flex;
					justify-content: space-between;
					align-items: baseline;
					padding: 0rpx 18rpx;
					box-sizing: border-box;
					border-bottom: 4rpx solid rgba($color: #ffffff, $alpha: 0.3);
					margin-bottom: 10rpx;
					.left{
						display: flex;
						align-items: baseline;
						>text{
							font-size: $uni-font-size-sm;
							&.title{
								box-sizing: border-box;
								white-space: nowrap;
								width: 120rpx;
							}
							&.num{
								font-size: 60rpx;
							}
							&.icon{
								margin-left: 30rpx;
							}
						}
						
					}				
				}
			}
			.operator{
				width: 100%;
				background-color:  #FFFFFF;
				border-radius: 16rpx;
				padding: 10rpx;
				margin-top: 15rpx;
				display: flex;
				align-items: center;
				justify-content: space-around;
				box-sizing: border-box;
				>.item{
					display: flex;
					flex-direction: column;
					align-items: center;
					font-size: 20rpx;
					color: black;
					.text{
						margin-top: 8rpx;
					}
				}
			}
		}
		.mydaliyinfo{
			margin-top: 10rpx;
			flex: 1;
			width: 100%;
			border-radius: 8px 8px 0px 0px;
			background-color: rgba(242, 242, 247, 100);
			padding: 20rpx;
			box-sizing: border-box;
			.baseinfo{
				height: 122px;
				border-radius: 6px;
				width: 100%;
				background-color: #FFFFFF;
				padding: 18rpx;
				box-sizing: border-box;
				display: flex;
				flex-direction: column;
				.top{
					display: flex;
					justify-content: space-between;
					align-items: flex-end;
					padding-bottom: 10rpx;
					box-sizing: border-box;
					border-bottom: 2rpx solid rgba($color: #bbbbbb, $alpha: 0.6);
					.text{
						color: rgba(16, 16, 16, 100);
						font-size: 28rpx;
						&.check{
							font-size: 20rpx;
						}
					}
					.qushi{
						display: flex;
						align-items: flex-end;
						.qushiimg{
							width: 28rpx;
							height: 28rpx;
						}
					}
				}
				.bottom{
					flex: 1;
					color: rgba(104, 102, 102, 100);
					display: flex;
					.infoitem{
						display: flex;
						align-items: baseline;
						justify-content: space-between;
						box-sizing: border-box;
						padding: 0rpx 10rpx;
						.title{
							display: inline-block;
							font-size: 20rpx;
							white-space: nowrap;
							width: 100rpx;
						}
						.icon{
							font-size: 18rpx;
						}
						.num{
							flex: 1;
							color: #333333;
							font-weight: bold;
							white-space: normal;
							overflow: hidden;
							text-overflow: ellipsis;
							font-size: 36rpx;
						}
					}
					>.box{
						flex: 1;
						display: flex;
						flex-direction: column;
						justify-content: space-around;
					}
				}
			}
			.openorder{
				margin-top: 48rpx;			
				.btn{
					margin: 0 auto;
					width: 50%;
					display: flex;
					box-sizing: border-box;
					color: #FEDD59;
					background-color: #4C5493;
					align-items: center;
					justify-content: center;
					border-radius: 16rpx;
				}
			}
		}
		
	}
</style>
